/*
 * MatchPattern.java
 *
 * Created on February 8, 2007, 2:34 PM
 *
 * (C) R. Alexander Milowski alex@milowski.com
 */

package com.smallx.xpath;

import org.infoset.xml.Item;
import org.infoset.xml.XMLException;

/**
 *
 * @author R. Alexander Milowski
 */
public interface XPathMatcher {
   
   Item match(Item current)
      throws XMLException;

   /**
    * Resets the state and effectively resets the XPath.
    */
   void reset();
   
}
